Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Fixes useless-exception-statement (PLW0133) #3957

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

echoix
Copy link
Member

@echoix echoix commented Jun 30, 2024

Concerns Pylint rule "pointless-exception-statement / W0133"

Using ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix.

Part of the effort to introduce Pylint 3.x for #3921

Uses the fixes provided for ruff rule useless-exception-statement (PLW0133) to fix Pylint's "pointless-exception-statement / W0133".

This one is extremely easy to review. The three exceptions were simply not raised, which doesn't make sense, nor do what was intended.

Concerns Pylint rule "pointless-exception-statement / W0133"

Using `ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix`.
@echoix echoix added this to the 8.5.0 milestone Jun 30, 2024
@github-actions github-actions bot added Python Related code is in Python libraries module general tests Related to Test Suite labels Jul 1, 2024
Copy link
Member

@ninsbl ninsbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

@echoix echoix enabled auto-merge (squash) July 1, 2024 02:28
@echoix echoix merged commit 734c93d into OSGeo:main Jul 1, 2024
26 of 27 checks passed
@echoix echoix deleted the fix-useless-exception-statement branch July 1, 2024 03:42
cyliang368 pushed a commit to cyliang368/grass that referenced this pull request Jul 1, 2024
Concerns Pylint rule "pointless-exception-statement / W0133"

Using `ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix`.
@a0x8o a0x8o mentioned this pull request Jul 1, 2024
a0x8o pushed a commit to a0x8o/grass that referenced this pull request Jul 2, 2024
Concerns Pylint rule "pointless-exception-statement / W0133"

Using `ruff check --output-format=concise --select PLW0133 --unsafe-fixes --fix`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general libraries module Python Related code is in Python tests Related to Test Suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants